<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateArticleTypesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('article_types', function(Blueprint $table)
		{
            $table->engine = 'InnoDB';
			$table->increments('type_id')->comment('主键ID');
			$table->string('name', 100)->default('')->comment('导航分类名称');
			$table->string('description', 191)->default('')->comment('导航分类说明');
			$table->smallInteger('sort')->default(100)->comment('排序');
			$table->boolean('status')->default(1)->comment('状态,1:显示;2:隐藏');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('article_types');
	}

}
